package com.easytake.emotioncat.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 猫粮表
 * </p>
 *
 * @author baomidou
 * @since 2022-11-11
 */
@Getter
@Setter
@Schema(title = "猫粮更新对象")
public class FoodParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 情绪类型
     */
    @Schema(title = "情绪类型")
    @NotBlank(message = "情绪类型不能为空")
    private String category;

    /**
     * 数量 增加是
     */
    @Schema(title = "数量,默认为1")
    @Min(value = 1, message = "数量要大于1")
    private Integer quantity=1;

}
